import request from "@/util/request";

// 获取店铺id
export const newshopId = (record) => request({
  url: '/qichong-record/record/getRecordByCategory',
  data: record
})

// 获取店内的动物信息按照品种归类
export const storePetclassify = (queryType) => request({
  url: '/qichong-record/api/animal/page',
  params: queryType
})

// 根据动物品种查询当前店铺中该品种的档案列表
export const storePetclassifyItem = (breedId, shopId) => request({
  url: '/qichong-record/record/getAllRecordByCategory',
  params: {
    breedId,
    shopId
  }
})

// 根据宠物档案id 获取对应的健康档案
export const storePethealthItem = (id) => request({
  url: '/qichong-record/api/animal/detail',
  params: {
    id
  }
})

// 根据宠物档案id 获取对应的健康档案
export const storePetbehavior = (recordId) => request({
  url: '/qichong-record/everydayrecord/ext-list',
  params: {
    recordId
  }
})

// 根据宠物档案id查询宠物日常记录
export const storePetrecord = (recordId) => request({
  url: '/qichong-record/everydayrecord/detailByRecordId',
  params: recordId
})

// 消费记录
export const openconsumption = (recordId) => request({
  url: '/qichong-record/consumelog/list',
  params: recordId
})
